package com.dcm.bargain.service;

import com.dcm.bargain.entity.CutPriceEntity;
import com.dcm.common.vo.CommonResponse;

import java.util.List;

/**
 * @author:zhouyuhan and fengxiang
 * 时间: 2021/3/30 17:10
 */
public interface CutPriceService {

    /**
     * 开启、关闭
     * @param id
     */
    void updateStatus(Long id);

    /**
     * 砍价状态已结束删除
     * @param id
     */
    void deleteStatus( Long id);


    /**
     * 查询商品
     * @param id
     * @return
     */
    CutPriceEntity findCutProduct(Long id);

    /**
     * 全部、今天、昨天、近7天、近30天、本月、本年
     * @param currentPage
     * @param pageSize
     * @param whichDay
     * @return
     */
    List<CutPriceEntity> findTime(Integer currentPage, Integer pageSize, String whichDay);


    /**
     * 发起砍价
     * @param bid
     * @param uid
     * @return
     */
    CommonResponse startBargain(Long bid, Long uid);

    /**
     * 帮助砍价
     * @param id
     * @param uid
     * @return
     */
    CommonResponse helpBargain(Long id, Long uid);
}
